package com.xinzhi.mapper;

import com.xinzhi.domain.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * @Entity com.xinzhi.domain.User
 */
public interface UserMapper extends BaseMapper<User> {
    /**
     * 通过手机号查找对象--验证码
     * @param tel
     * @return
     */
    User selectUserByTel(String tel);
    /**
     * 新增用户--验证码
     * @return
     */
    int insertByPhone(User user);


    int saveUser(User user);

    int saveUserrole(User user);

    List<User> selectbyname(String username);
}




